package com.hexacta.hrs.services.exchange.impl;

import java.util.Collection;
import java.util.List;

import org.vectrics.employee.Employee;

import com.hexacta.hrs.domain.exchange.Accrued;
import com.hexacta.hrs.domain.exchange.AccruedReferring;
import com.hexacta.hrs.domain.exchange.Confirmation;
import com.hexacta.hrs.repositories.exchange.AccruedRepository;
import com.hexacta.hrs.services.exchange.AccruedService;

public class AccruedServiceImpl implements AccruedService {
	private AccruedRepository accruedRepository;

	public AccruedRepository getAccruedRepository() {
		return accruedRepository;
	}

	public void setAccruedRepository(AccruedRepository accruedRepository) {
		this.accruedRepository = accruedRepository;
	}

	@Override
	public void delete(Accrued entity) {
		accruedRepository.delete(entity);
	}

	@Override
	public Accrued forId(Long id) {
		return accruedRepository.forId(id);
	}

	@Override
	public Collection<Accrued> matching(Accrued criteria) {
		return accruedRepository.matching(criteria);
	}

	@Override
	public void save(Accrued entity) {
		accruedRepository.save(entity);
	}

	@Override
	public Collection<Accrued> all() {
		return accruedRepository.all();
	}

	@Override
	public void saveConfirmation(Confirmation confirmation) {
		accruedRepository.saveConfirmation(confirmation);
	}

	@Override
	public List<Accrued> byProject(Long selectedProjectId) {
		return accruedRepository.byProject(selectedProjectId);
	}

	@Override
	public List<AccruedReferring> byReferring(Employee partner, Integer year, Integer month) {
		return accruedRepository.byReferring(partner, year, month);
	}
	
	
}
